﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;

namespace WCF_AutoUpdates_Services.WCFService
{
    [DataContract]
    public class FileDataInfo
    {
        /// <summary>
        /// 文件名称
        /// </summary>
        [DataMember]
        public string Name { get; set; }
        /// <summary>
        /// 文件大小
        /// </summary>
        [DataMember]
        public long Length { get; set; }

        /// <summary>
        /// 文件偏移量
        /// </summary>
        [DataMember]
        public long Offset { get; set; }

        /// <summary>
        /// 数据buff
        /// </summary>
        [DataMember]
        public byte[] Data { get; set; }

        /// <summary>
        /// 传递约束，一包数据的长度
        /// </summary>
        [DataMember]
        public int BuffLen { get; set; }

        /// <summary>
        /// MD5文件校验码
        /// </summary>
        [DataMember]
        public string MD5 { get; set; }
    }
}
